package dao

import (
	"errors"
	"fresh-e-commerce/models"
)

func OrderList(uid int64) (order []*models.Order, err error) {
	o := models.Order{}
	list, err := o.OrderList(uid)
	if err != nil {
		return nil, errors.New("订单查询失败")
	}
	return list, nil
}
